# 应用配置管理模块
# 该文件用于定义和管理应用程序的各种配置参数
# 使用Pydantic的BaseSettings类来处理环境变量和配置

from pydantic_settings import BaseSettings
from typing import Optional

class Settings(BaseSettings):
    # 项目基本信息
    PROJECT_NAME: str = "My Stock"
    PROJECT_VERSION: str = "0.1.0"
    PROJECT_DESCRIPTION: str = "股票量化项目后端API"
    
    # 数据库配置
    DATABASE_URL: str = "sqlite:///./test.db"
    
    # 安全配置
    SECRET_KEY: str = "my-secret-key"
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
    
    class Config:
        env_file = ".env"
        case_sensitive = True